package cn.tedu.course.carousel.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
@Schema(description = "轮播图保存请求参数")
public class CarouselSaveParam {
    @Schema(description = "轮播图id")
    private Long id;
    @Schema(description = "轮播图名称")
    @NotBlank(message = "轮播图名称不能为空")
    private String carouselName;
    @Schema(description = "图片")
    @NotBlank(message = "图片不能为空")
    private String image;
    @Schema(description = "排序")
    @NotNull(message = "排序不能为空")
    private Integer sort;
    @Schema(description = "是否轮播")
    private Boolean isShow;

}
